/**
 * 提问类
 * index -- 问题索引
 * askType -- 问题类型：一问一答或者选择题，每种类型显示方式略有不同
 * question -- 问题内容
 * options -- 答案选项
 */
class commentBean {
  constructor(index, imageUrl, name, studentId, comment, time, isVote, voteNumber) {
    this.index = index
    this.imageUrl = imageUrl
    this.name = name
    this.studentId = studentId
    this.comment = comment
    this.time = time
    this.isVote = isVote
    this.voteNumber = voteNumber
  }
}

var getInstance = function (index, imageUrl, name, studentId, comment, time, isVote, voteNumber) {
  return new commentBean(index, imageUrl, name, studentId, comment, time, isVote, voteNumber);
}

module.exports = {
  getInstance: getInstance
}